package com.aaa.os;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@MapperScan("com.aaa.os.dao")  //mybatis扫描dao
@EnableTransactionManagement  //开启事务管理
@EnableDiscoveryClient   //开启客户端发现功能，用来向注册中心注册。通用注解，任何注册中心都可以使用该注解
//@EnableEurekaClient    //开启eureka客户端功能，只能向eureka注册中心注册
public class OrderCApp {
    public static void main(String[] args) {
        SpringApplication.run(OrderCApp.class,args);
    }
}
